var ClubMemberItem2 = Item.extend({
    _ccsFileName: res.ClubMemberItem2_json,
    refreshData: function (idx, memberInfo) {
        loadImageToSprite(memberInfo['headUrl'], this._nodeList['head']);
        this._nodeList['lb_num'].setString(idx);
        this._nodeList['lb_id'].setString(memberInfo['uid']);
        this._nodeList['lb_name'].setString(ellipsisStr(memberInfo['name'], ClubDataManager.NirckNameSize));
        this._nodeList['lb_states'].setString(memberInfo['stateTips']);

        var stateColor = cc.color(214, 131, 43);
        if (memberInfo['state'] == ClubDataManager.MemberState_OnLine) {
            stateColor = cc.color(39, 182, 49);
        } else if (memberInfo['state'] == ClubDataManager.MemberState_Room) {
            stateColor = cc.color(255, 10, 10);
        }
        if (memberInfo['black']) {
            stateColor = cc.color(255, 10, 10);
        }
        this._nodeList['lb_states'].setTextColor(stateColor);

        var shenfen = '成员';
        var color = cc.color(214, 131, 43);
        if (memberInfo['owner']) {
            shenfen = '创建者';
            color = cc.color(214, 131, 43);
        } else if (memberInfo['admins']) {
            shenfen = '管理员';
            color = cc.color(214, 131, 43);
        }
        this._nodeList['lb_shenfen'].setString(shenfen);
        this._nodeList['lb_shenfen'].setTextColor(color);


    },
});